import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
import QtQuick.Window 2.1

Window {
    visible: true
    width: 360
    height: 360

    Button {
        width: 100;
        height: 40;
        anchors.centerIn: parent;

        checkable: true;
        style: ButtonStyle {
            background: Rectangle{
                anchors.fill: parent;
                color: "lightskyblue";
                radius: 2;
                //border.color的效果不错，哈哈哈哈哈哈
                border.width: control.pressed? 2 : 1;
                border.color: control.pressed? "white" : "lightskyblue";

                Text {
                    anchors.centerIn: parent;
                    text: "click";
                    color: "white";
                }
            }
        }
    }
}
